package cn.lavender.crypto.remark;

import cn.hutool.crypto.SecureUtil;
import cn.hutool.crypto.digest.MD5;

/**
 * <p>
 * 摘要算法：MD5
 * </p>
 *
 * @author: zhu.chen
 * @date: 2021/3/20
 * @version: v1.0.0
 */
public class Md5Crypto {

    private static final MD5 MD5 = SecureUtil.md5();

    private static String md5(String data) {
        return MD5.digestHex(data);
    }

    public static void main(String[] args) {
        System.out.println(Md5Crypto.md5("小明"));
    }

}
